package com.starblink.android.basic.sensorsdata.exposure

import android.view.View
import com.starblink.android.basic.sensorsdata.SkViewTracker
import com.starblink.android.basic.sensorsdata.exposure.config.ExposeConfig
import com.starblink.android.basic.sensorsdata.room.entity.SkAntEntity


//mShowRatio 曝光面积
@Deprecated(
    "", ReplaceWith(
        "com.starblink.android.basic.sensorsdata.extension.TrackExt.trackData"
    )
)
fun View.trackExposure(
    trackData: SkAntEntity?,
    showRatio: Float = ExposeConfig.showRatio,
    exposeTime: Float = ExposeConfig.exposeTime,
) {

    SkViewTracker.trackView(this, trackData, showRatio, exposeTime)
}

//internal val View.traceTagData get() = this.getTag(R.id.view_track_data)
//
//fun View.clearTrackData() {
//    setTag(R.id.view_track_data, null)
//}